<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/complaint/index.js'),AdminAsset::class);
?>
<div class="layui-card">
    <div class="layui-card-header">投诉列表</div>
    <div class="layui-card-body">
        <form  class="layui-form" method="get" id="form1">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">搜索类型</label>
                    <div class="layui-input-inline">
                        <select name="search_type" id="type" lay-search="">
                            <option value="">请选择搜索类型</option>
                            <option value="1">按手机号搜索</option>
                            <option value="2">按用户名搜索</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="search_value"  autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">投诉状态</label>
                    <div class="layui-input-inline">
                        <select name="status" id="status" lay-search="">
                            <option value="">请选择投诉状态</option>
                            <option value="1">待处理</option>
                            <option value="2">处理中</option>
                            <option value="3">已完成</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">开始时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="start_time" id="start_time" lay-verify="title" autocomplete="off" placeholder="开始时间" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">截止时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="end_time" id="end_time" lay-verify="title" autocomplete="off" placeholder="截止时间" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-submit lay-filter="serch-form">搜索</button>
                </div>
            </div>
        </form>
        <div class="layui-form-item">
            <table class="layui-hide" id="test"  lay-filter="barDemo"></table>
        </div>
    </div>
</div>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="order-info">查看订单</a>
</script>

